package com.sercomm.ott.mediaplayer;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.net.wifi.WifiManager;
import android.util.Log;
import android.widget.Toast;

/**
 * Created by davis on 17-9-12.
 */

public class WifiReceiver extends BroadcastReceiver{
    private static final String TAG = "WifiReceiver";
    @Override
    public void onReceive(Context context, Intent intent){
        if(intent.getAction().equals("android.intent.action.BOOT_COMPLETED")){
            Intent wifiservice = new Intent(context,WifiService.class);
            context.startService(wifiservice);
        }
    }
}
